package com.cxria.pattern.commandAndResponsibilityChain

enum CommandEnum {
    ls('com.cxria.pattern.commandAndResponsibilityChain.LSCommand'),
    df('com.cxria.pattern.commandAndResponsibilityChain.DFCommand')

    private String value

    private CommandEnum(String value){
        this.value = value
    }

    String getValue(){
        value
    }

    static List<String> getNames(){
        CommandEnum[] commandEnums = CommandEnum.values()
        def names = []
        for(c in commandEnums){
            names.add(c.name())
        }
        names
    }

}